#include <iostream>

int main()
{
	int n;
	std::cin >> n;
	int sum = 0;
	for (int i = 0, x; i < n; i++) {
		std::cin >> x;
		sum += x;
	}
	std::cout << sum << '\n';
}

